package com.grass.p019lv.novel.adapter;

import android.widget.LinearLayout;
import android.widget.TextView;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.novel.FictionList;
import com.androidx.p013lv.base.utils.UiUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

/* renamed from: com.grass.lv.novel.adapter.FictionAdapter */
public class FictionAdapter extends BaseQuickAdapter<FictionList, BaseViewHolder> {
    TextView tv_favorites_num;
    TextView tv_info;
    TextView tv_see_num;
    TextView tv_title;

    public FictionAdapter() {
        super(R.layout.item_class_fiction, null);
    }

    /* access modifiers changed from: protected */
    public void convert(BaseViewHolder baseViewHolder, FictionList fictionList) {
        LinearLayout linearLayout = (LinearLayout) baseViewHolder.getView(R.id.ll_root);
        LinearLayout linearLayout2 = (LinearLayout) baseViewHolder.getView(R.id.ll_empty);
        if (!fictionList.isEmpty()) {
            linearLayout.setVisibility(0);
            linearLayout2.setVisibility(8);
            this.tv_title = (TextView) baseViewHolder.getView(R.id.tv_title);
            this.tv_info = (TextView) baseViewHolder.getView(R.id.tv_content_info);
            this.tv_see_num = (TextView) baseViewHolder.getView(R.id.tv_see_num);
            this.tv_favorites_num = (TextView) baseViewHolder.getView(R.id.tv_favorites_num);
            this.tv_title.setText(fictionList.getFictionTitle());
            this.tv_info.setText(fictionList.getInfo());
            TextView textView = this.tv_see_num;
            textView.setText(UiUtils.num2str(fictionList.getFakeWatchTimes()) + "");
            TextView textView2 = this.tv_favorites_num;
            textView2.setText(UiUtils.num2str(fictionList.getFakeLikes()) + "");
            return;
        }
        linearLayout2.setVisibility(0);
        linearLayout.setVisibility(8);
    }
}
